//
//  MyTableViewCell.m
//  MyTrip
//
//  Created by dllo on 15/9/29.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "MyTableViewCell.h"
@interface MyTableViewCell()

@property (nonatomic , retain) UIImageView *imag;
@property (nonatomic , retain) UILabel *label;
@property (nonatomic , retain) UILabel *playlabel;
@end

@implementation MyTableViewCell
- (void)dealloc
{
    [_imag release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createrView];
    }
    return self;
}
-(void)createrView
{
    
    self.imag = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 250, 150)];
    self.imag.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.imag];
    
    UIImageView *ima=[[UIImageView alloc]initWithFrame:CGRectMake(10, 170, 25, 25)];
    ima.image=[UIImage imageNamed:@"time.png"];
    [self.contentView addSubview:ima];
    [ima release];
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(36, 170, 60, 25)];
    self.label.text = @"1:50";
    self.label.textColor =[UIColor grayColor];
    [self.contentView addSubview:self.label];
    
    UIImageView *imag = [[UIImageView alloc]initWithFrame:CGRectMake(100, 170, 25, 25)];
    imag.image = [UIImage imageNamed:@"play.png"];
    [self.contentView addSubview:imag];
    [imag release];
    
    
    self.playlabel = [[UILabel alloc] initWithFrame:CGRectMake(127, 170, 60, 25)];
    self.playlabel.text = @"1700";
    self.playlabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.playlabel];
    
    
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(230, 170, 25, 25)];
    [button setBackgroundImage:[UIImage imageNamed:@"share.png"] forState:UIControlStateNormal];
    [self.contentView addSubview:button];
    
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
